import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueAMap from 'vue-amap';
import App from './App.vue'
import axios from 'axios'
import router from './router/index.js'
import store from './store/index.js'
import vueSession from 'vue-session'
import vueCookies from 'vue-cookies'

Vue.config.productionTip = false

Vue.prototype.axios = axios
Vue.use(ElementUI)
Vue.use(vueSession)
Vue.use(vueCookies)

Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: 'de7a8277974a9bf0bbf94002f36dfe85',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor', 'AMap.Geolocation'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
});

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
